#include <linux/mm.h>
#include <linux/spinlock.h>

pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr,
                        spinlock_t **ptl)
{
    pte_t *pte = NULL;
    pmd_t *pmd = walk_to_pmd(mm, addr);
    
    if (pmd)
    {
        pte = pte_alloc_map_lock(mm, pmd, addr, ptl);
    }

    return pte;
}

int __pte_alloc(struct mm_struct *mm, pmd_t *pmd)
{

    return 0;
}
